home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
9-Digit Zip Code Directory
/
9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO
/
z4src.zip
/
SETJMP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-23
|
918b
|
45 lines
/***
*setjmp.h - definitions/declarations for setjmp/longjmp routines
*
* Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file defines the machine-dependent buffer used by
* setjmp/longjmp to save and restore the program state, and
* declarations for those routines.
* [ANSI/System V]
*
****/
#ifndef _INC_SETJMP
#ifndef __cplusplus
#if (_MSC_VER <= 600)
#define __cdecl _cdecl
#define __far _far
#endif
/* define the buffer type for holding the state information */
#define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */
#ifndef _JMP_BUF_DEFINED
typedef int jmp_buf[_JBLEN];
#define _JMP_BUF_DEFINED
#endif
/* ANSI requires setjmp be a macro */
#define setjmp _setjmp
/* function prototypes */
int __cdecl _setjmp(jmp_buf);
void __cdecl longjmp(jmp_buf, int);
#endif
#define _INC_SETJMP
#endif